<template>
  <div>
    <h4>子组件:{{ value }}</h4>
    <button @click="$emit('input',value+1)">+1</button>
    <button @click="add">sync{{ aaa }}</button>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Number,
      require: true
    },
    aaa: {
      type: Number,
      require: true
    }
  },
  methods: {
    add() {
      this.$emit('update:aaa', this.aaa + 1)
    }
  }
}
</script>

<style>

</style>
